//
//  Tools.h
//  UHouse
//
//  Created by yz7805325 on 15/6/22.
//  Copyright (c) 2015年 ujuz.cn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define IS_IPHONE4 (([[UIScreen mainScreen] bounds].size.height == 480) ? YES : NO)
#define IS_IPHONE5 (([[UIScreen mainScreen] bounds].size.height == 568) ? YES : NO)
#define IS_IPHONE6 (([[UIScreen mainScreen] bounds].size.height == 667) ? YES : NO)
#define IS_IPHONE6PLUS (([[UIScreen mainScreen] bounds].size.height == 736) ? YES : NO)

#define SCREEN_WIDTH  ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define RGB(R,G,B)   [UIColor colorWithRed:R/255.f green:G/255.f blue:B/255.f alpha:1]

@interface Tools : NSObject

/**
 *  颜色转换
 */
+ (UIColor *)getColor:(NSString*)hexColor;

//手机号码验证
+ (BOOL)isMobileNumber:(NSString *)mobileNum;

/**
 *  自定义警告框
 */
+ (void)alertWithTitle:(NSString *)title andMessage:(NSString *)message;

/**
 *  英文格式日期转换
 */
+ (NSString *)getTimeWithDate:(NSString *)timeStr;

@end
